package cn.bone.auth.security;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.ApplicationPidFileWriter;
import org.springframework.boot.web.context.WebServerPortFileWriter;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;

@SpringBootApplication
@EnableWebSecurity
public class SecurityMain {

    public static void main(String... args){
        SpringApplication app = new SpringApplication(SecurityMain.class);
        app.addListeners(new ApplicationPidFileWriter("logs/security.pid"));
        app.addListeners(new WebServerPortFileWriter("logs/security.port"));
        ConfigurableApplicationContext context = app.run(args);
    }
}
